package z.sample.servicecommons;

import org.dozer.DozerBeanMapper;

public class ObjectConverter {
	private static final DozerBeanMapper DOZER_MAPPER = new DozerBeanMapper();
	
	/**
	 * Convert source to destination.
	 *
	 * @param source the source
	 * @param destination the destination
	 * @return the object
	 */
	public Object convert(final Object source, final Object destination) {
		DOZER_MAPPER.map(source, destination);
		
		return destination;
	}
}
